package SmartFurniture.Factory.Philips;

import SmartFurniture.AbstractFactory.Light;
import SmartFurniture.Interface.SmartDevice;

public class PhilipsLight extends Light {
    public void init(){
        System.out.println("正在初始化飞利浦灯...");
        System.out.println("正在加载飞利浦协议...");
        System.out.println("初始化完成");
    }


    public SmartDevice clone() throws CloneNotSupportedException {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    public String getName() {
        return "飞利浦灯";
    }

    @Override
    public String getInfo() {
        return "飞利浦灯,采用飞利浦协议,可以智能调节亮度";
    }

}
